package com.nit.service;

import com.alibaba.fastjson.JSONObject;
import com.nit.dto.UserDTO;
import com.nit.dto.utils.OpResultDTO;

import java.util.List;

public interface UserService {
    /**
     * @Description: 登录验证
     * @Author: 张凡
     * @Date: 2019/7/20 20:28
     */
    JSONObject loginCheck(String userName, String userPwd, String verificationCode, Long ucId) throws Exception;

    /**
     * @Description: 注册(会员)
     * @Author: 张凡
     * @Date: 2019/8/29 17:46
     */
    OpResultDTO register(UserDTO userDTO) throws Exception;

    /**
     * @Description: 生成并获取验证码
     * @Author: 张凡
     * @Date: 2019/9/8 15:58
     */
    OpResultDTO getUserCode() throws Exception;

    Long remove(String userIds) throws Exception;

    Long update(UserDTO userDTO) throws Exception;

    /**
    * @Description:  状态改变
    * @Author: Lc
    * @Date: 2019/9/8
    */
    Long change(String userIds) throws Exception;

    List<UserDTO> query(String userName) throws Exception;
}
